24. Exercise: Send Data
Sending Data Between Activities
SOLUTION:
- Use the putExtra method to add the String that was clicked into the Intent used to start the DetailActivity.
- Safely retrieve the extra String from the Intent inside the DetailActivity.
- Add a TextView to your layout and set the text of the TextView with the String from the Intent extra.